package com.graduation.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    private static final String dateFormat = "yyyy-MM-dd HH:mm:ss";

    //返回时间
    public static String getCurrentDate(){
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
        String formatAfterDate = sdf.format(date);
        return formatAfterDate;
    }
}
